{include file=common/header.html}
<link rel="preload" href="{pboot:sitetplpath}/_next/static/css/51e19eb1a1ad99e1.css" as="style"/>
<link rel="stylesheet" href="{pboot:sitetplpath}/_next/static/css/51e19eb1a1ad99e1.css" data-n-p=""/>


<!--导航菜单 start-->
{include file=common/nav.html}
<!--导航菜单 end-->


<div class="">
    <!--顶部文章分类 start-->
    {include file=common/top.html}
    <!--顶部文章分类 end-->


    <div class="styles_wrapper__GJS2V">
        <div class="container">
            <a href="../index.html"> <!-- -->首页<!-- --> </a><span>&gt;<!-- -->
            <!-- -->{sort:name}</span>
        </div>
    </div>

    <div class="_tabType__market__Q3z6v">
        <div class="container flex-container flex-space-between">
            <div class="caijingrili_left__suf_0">
                <div class="styles_calendar__oqEmk">
                    <div class="styles_top__j2gYq">
                        <h1 class="common__h">财经日历</h1>
                    </div>
                    <div class="styles_selector__cax6K">

                    </div>
                    <div class="styles_wrap__mASb8">



                    </div>
                </div>
            </div>
            <div class="caijingrili_right__d3pvv">
                <a href="/monikaihu/?utm_source=ey4_seo&amp;utm_medium=AAT_156"><div class="caijingrili_btn__x_zJX"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"></path><path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"></path></svg>开立模拟账户</div></a>
                <a href="/huangjintouzikaihu/?utm_source=ey4_seo&amp;utm_medium=AAT_156"><div class="caijingrili_btn__x_zJX"><svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"></path><path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"></path></svg>开立真实账户</div></a>


                {include file=common/hot-rankings.html}

                <div class="styles_MarketSidebar__tg_S1">
                    <div class="styles_top__4af9_">
                        <h3 class="common__h">黄金期货<!-- -->实时行情</h3>
                        <div class="more"><a href="/hq/huangjinqihuo/">更多</a>
                            <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
                                <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"></path>
                            </svg>
                        </div>
                    </div>
                    <div class="styles_bottom__eaO_v">

                        <span style="box-sizing:border-box;display:block;overflow:hidden;width:initial;height:initial;background:none;opacity:1;border:0;margin:0;padding:0;position:absolute;top:0;left:0;bottom:0;right:0">
                            <img referrerpolicy="no-referrer" alt="黄金期货" src="https://image.cngold.org/chart/futures/gold/aum.gif?auto=format&amp;fit=max&amp;w=3840" decoding="async" data-nimg="fill" style="position:absolute;top:0;left:0;bottom:0;right:0;box-sizing:border-box;padding:0;border:none;margin:auto;display:block;width:0;height:0;min-width:100%;max-width:100%;min-height:100%;max-height:100%" sizes="100vw" srcset="https://image.cngold.org/chart/futures/gold/aum.gif?auto=format&amp;fit=max&amp;w=640 640w, https://image.cngold.org/chart/futures/gold/aum.gif?auto=format&amp;fit=max&amp;w=750 750w, https://image.cngold.org/chart/futures/gold/aum.gif?auto=format&amp;fit=max&amp;w=828 828w, https://image.cngold.org/chart/futures/gold/aum.gif?auto=format&amp;fit=max&amp;w=1080 1080w, https://image.cngold.org/chart/futures/gold/aum.gif?auto=format&amp;fit=max&amp;w=1200 1200w, https://image.cngold.org/chart/futures/gold/aum.gif?auto=format&amp;fit=max&amp;w=1920 1920w, https://image.cngold.org/chart/futures/gold/aum.gif?auto=format&amp;fit=max&amp;w=2048 2048w, https://image.cngold.org/chart/futures/gold/aum.gif?auto=format&amp;fit=max&amp;w=3840 3840w">
                            <noscript></noscript>
                        </span>

                    </div>
                </div>

                <div class="styles_imageArticleSection__vdS7C">
                    <div class="styles_top__rmehH">
                        <h3 class="common__h">每日分析</h3>
                        <div class="more"><a href="/hangqingfenxi/">更多</a>
                            <svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg">
                                <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"></path>
                            </svg>
                        </div>
                    </div>
                    <ul>
                        {foreach $analyseList(key,value)}
                        {php}
                        $Parser=new app\home\controller\ParserController();
                        $link=$Parser->parserLink(2,$value->urlname,'content',$value->scode,$value->sortfilename,$value->id,$value->filename);
                        {/php}

                        <li>
                            <div class="styles_imgAndText__5V_A_">
                                <div class="styles_card__Inpy6">
                                    <img src="{SITE_DIR}[value->ico]" alt="[value->title]"/>
                                    <h3>
                                        <a class="styles_title__mMnvv" href="{php}echo $link{/php}">[value->title]</a>
                                        <div class="styles_tags__gt_SN">
                                            <a href="/[value->sortfilename]/" class="styles_tag__XvUmn">[value->sortname]</a>
                                        </div>
                                    </h3>
                                </div>
                            </div>
                        </li>

                        {/foreach}

                    </ul>
                </div>

                {include file=common/hot-tags.html}

            </div>
        </div>
    </div>

</div>
<script>
    lang = function (n) {
        switch (n) {
            case '\u65b0\u897f\u5170':
                return { class: 'nations_flag_newzealand__RowY4', name: 'NZD' }
            case '\u97e9\u56fd':
                return { class: 'nations_flag_south_korea__Mrtp_', name: 'KRW' }
            case '\u6fb3\u5927\u5229\u4e9a':
                return { class: 'nations_flag_australia___SnCA', name: 'AUD' }
            case '\u65e5\u672c':
                return { class: 'nations_flag_japan__XF9mu', name: 'JPY' }
            case '\u5fb7\u56fd':
                return { class: 'nations_flag_germany__6Rx1Z', name: 'EUR' }
            case '\u745e\u58eb':
                return { class: 'nations_flag_switzerland__pg9a_', name: 'CHF' }
            case '\u9999\u6e2f':
                return { class: 'nations_flag_china_hongkong__W7hm9', name: 'HKD' }
            case '\u897f\u73ed\u7259':
                return { class: 'nations_flag_spain__HJSOC', name: 'EUR' }
            case '\u82f1\u56fd':
                return { class: 'nations_flag_greatbritain__y0_jA', name: 'GBP' }
            case '\u610f\u5927\u5229':
                return { class: 'nations_flag_italy__qnSmn', name: 'EUR' }
            case '\u52a0\u62ff\u5927':
                return { class: 'nations_flag_canada__cOZDV', name: 'CAD' }
            case '\u7f8e\u56fd':
                return { class: 'nations_flag_usa__KFV_d', name: 'USD' }
            case '\u4e2d\u56fd':
                return { class: 'nations_flag_china__0oyHq', name: 'RMB' }
            case '\u53f0\u6e7e':
                return { class: 'nations_flag_china_taiwan__4BF_u', name: 'TWD' }
            case '\u5370\u5ea6':
                return { class: 'nations_flag_india__FA3RZ', name: 'INR' }
            case '\u6cd5\u56fd':
                return { class: 'nations_flag_france__Gr6TJ', name: 'EUR' }
            case '\u6b27\u6d32':
            case '\u6b27\u5143\u533a':
                return { class: 'nations_flag_euro__XieP4', name: 'EUR' }
            case '\u65b0\u52a0\u5761':
                return { class: 'nations_flag_singapor__DWnqN', name: 'SGD' }
            case '\u8461\u8404\u7259':
                return { class: 'nations_flag_portugal__ZARx_', name: 'EUR' }
            case '\u5965\u5730\u5229':
                return { class: 'nations_flag_aodili__y0ABr', name: 'EUR' }
            case '\u5362\u68ee\u5821':
                return { class: 'nations_flag_luxembourg__bQEHl', name: 'EUR' }
            case '\u8377\u5170':
                return { class: 'nations_flag_netherlands__UQArg', name: 'NLG' }
            case '\u4fc4\u7f57\u65af':
                return { class: 'nations_flag_russia__D27_M', name: 'RUB' }
            default:
                return { class: 'nations_flag_national__iSelY', name: 'BTC' }
        }
    }
    setCalendar = function(t){


        $.get("https://www.ey4.top/news/calendar/list",{time:t},function (result) {
            console.log(result,'result')
            $('.styles_wrap__mASb8').html('');

            for(var i in result.data){
                var value = result.data[i]
                    ,date = new Date(value.ctime)
                    ,html = '<div class="styles_card__lFJjG">' +
                    '                            <div class="styles_date__CXEYN">' +
                    '                                <h5>' + date.getFullYear() + '-'+ ( (date.getMonth() + 1 < 10
                        ? "0" + (date.getMonth() + 1) : date.getMonth() + 1) ) +'-'+ ((date.getDate() < 10 ? "0" + date.getDate() : date.getDate())) +' '+ value.time +':00</h5>' +
                    '                            </div>' +
                    '                            <div class="styles_cardBottom__dxURI '+ lang(value.country).class +'">' +
                    '                                <h4><span>'+ lang(value.country).name +'</span><span>'+ value.event +'</span></h4>' +
                    '                                <div class="styles_tags__R9VLI"><span>重要性：'+ (value.importance == 1 ? '低'  : (value.importance == 2 ? '中': '高')) +'</span><span>实际值：'+ (value.actual ? value.actual  : '--') +'</span><span>预期值：'+ (value.forecast ? value.forecast  : '--') +'</span><span>前值： <span class="down">'+ value.previous +'</span></span>' +
                    '                                </div>' +
                    '                            </div>' +
                    '                        </div>';


                $('.styles_wrap__mASb8').append(html);
                if( i >=9 ) break;
            }

            if( result.data.length <= 0 ) $('.styles_wrap__mASb8').html('<div class="no-data">暂无数据</div>');

        })
    }

    init = function(){
        var start = (new Date()).getDay()
            ,week = {
            '1':'周一',
            '2':'周二',
            '3':'周三',
            '4':'周四',
            '5':'周五',
            '6':'周六',
            '0':'周日',
        };
        $('.styles_selector__cax6K').html('');


        for(var i = 0;i<5;i++){
            var active = ''
                ,day = (start + i) % 7;
            if(i == 0) active = 'styles_active__IXVVQ';
            $('.styles_selector__cax6K').append('<div class="styles_tab__zs4AJ '+ active +'">' + week[day] + '</div>');
        }

        setCalendar((new Date()).getTime());
    }

    $(document).ready(function(){
        init();
        $('.styles_tab__zs4AJ').on('click',function (e) {
            console.log($(this).index(),'index')
            if($(this).hasClass('styles_active__IXVVQ')) return true;
            $(this).addClass('styles_active__IXVVQ').siblings().removeClass('styles_active__IXVVQ');

            var t = (new Date()).getTime() + ( $(this).index() * 1000 * 60 * 60 * 24);
            setCalendar(t);

        })
    })


</script>
<script id="__NEXT_DATA__" type="application/json">
    {
    }
</script>
{include file=common/footer.html}
